package com.healthy_software.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("meal_suggestion")
public class MealSuggestion {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("meal_type")
    private String mealType; // 对应DTO中的"餐次"

    @TableField("food_source")
    private String foodSource; // 对应DTO中的"食物来源_场景"

    @TableField("goal_detail_id")
    private Integer goalDetailId; // 关联目标详情ID

    @TableField("create_time")
    private LocalDateTime createTime;
}